const express = require("express");
const app = express();
// const Response = require("./utils/Response.js");
const port = 3050;

// 配置跨域
const cors = require("cors");
app.use(
  cors({
    origin: "*",
  })
);

// 解析post请求参数
app.use(express.urlencoded());

app.get("/", (req, resp) => {
  resp.send("Hello World!");
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`));

// 引入外部路由
app.use(require("./routers/userinfo"));
